/**
 * 对应教师端模版模块
 */
package xiangmu.schoolpaper.controller.teacher;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
//import xiangmu.schoolpaper.pojo.DTO.TemplateTypesQuery;
import xiangmu.schoolpaper.result.Result;
import xiangmu.schoolpaper.service.impl.teacher.TemplateTypesServiceImpl;

import java.util.List;


@Slf4j
@RestController
@RequestMapping("/teacher/get")
@Tag(name="查看本学院已启用的所有模板接口")
public class TemplateTypesController {

    @Autowired
    private TemplateTypesServiceImpl teacherTemplateTypesServiceImpl;


    @GetMapping("/getAllTemplateTypes")
    @Operation(summary = "获取所有模版的模版名称")
    public Result getAllTemplateTypes(){
        log.info("获取所有模版的模版名称");
        List<String> list = teacherTemplateTypesServiceImpl.getAllTemplateTypes();
        return Result.success(list);
    }

}
